package health.lm.com.home.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * @description 内容fragment实体类
 * @author GQI
 * @date :2019-07-18 16:12
 */
public class ContentItemEntity implements MultiItemEntity {
    public static final int BIG_PIC = 0;
    public static final int IMAGE_TEXT = 1;
    public static final int QUESTION = 4;
    public static final int THREE_PIC = 3;
    public static final int VIDEO = 2;
    private int itemType;

    private String news_id;

    private String title;

    private String img_url;

    private String show_views;

    private int show_type;

    private String video_url;

    private String read_time;

    private String reward;

    private String can_reward;

    public void setNews_id(String news_id){
        this.news_id = news_id;
    }
    public String getNews_id(){
        return this.news_id;
    }
    public void setTitle(String title){
        this.title = title;
    }
    public String getTitle(){
        return this.title;
    }
    public void setImg_url(String img_url){
        this.img_url = img_url;
    }
    public String getImg_url(){
        return this.img_url;
    }
    public void setShow_views(String show_views){
        this.show_views = show_views;
    }
    public String getShow_views(){
        return this.show_views;
    }
    public void setShow_type(int show_type){
        this.show_type = show_type;
    }
    public int getShow_type(){
        return this.show_type;
    }
    public void setVideo_url(String video_url){
        this.video_url = video_url;
    }
    public String getVideo_url(){
        return this.video_url;
    }
    public void setRead_time(String read_time){
        this.read_time = read_time;
    }
    public String getRead_time(){
        return this.read_time;
    }
    public void setReward(String reward){
        this.reward = reward;
    }
    public String getReward(){
        return this.reward;
    }
    public void setCan_reward(String can_reward){
        this.can_reward = can_reward;
    }
    public String getCan_reward(){
        return this.can_reward;
    }
    @Override
    public int getItemType() {
        return getTypeValue(show_type);
    }
    private int getTypeValue(int type){
        itemType = type;
        return itemType;
    }
}
